package com.jinmdz.fmis.api.admin.model.servicedictionary;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 服务字典费用关联主键请求数据
 *
 * @author GuanKui
 * @date 2020/3/10 9:28
 */
@ApiModel(value = "服务字典费用关联主键请求数据", description = "服务字典费用关联主键请求数据")
public class ServiceDictionaryDataIdData extends BaseBean {

    /**
     * 【service_dictionary_item】表中【id】主键值,仅在选中记录中存在有效id数据时传递
     */
    @AnValidate(name = "规则记录主键", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "规则记录主键", name = "id", position = 1)
    private Integer id;

    /**
     * 字典项id，【data_dictionary】表中【id】主键值，对应加载数据中字段为【dataDictionaryId】
     */
    @AnValidate(name = "字典表主键", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "字典项主键", name = "dataDictionaryId", position = 2)
    private Integer dataDictionaryId;

    public Integer getId() {
        return id;
    }

    public ServiceDictionaryDataIdData setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getDataDictionaryId() {
        return dataDictionaryId;
    }

    public ServiceDictionaryDataIdData setDataDictionaryId(Integer dataDictionaryId) {
        this.dataDictionaryId = dataDictionaryId;
        return this;
    }
}
